package net.tarine.gastronomi.client.widgets;

import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;

public class FramePanel extends FlowPanel {
	
	private HTML title = null;
	private Widget widget = null;
	
	public FramePanel() {
		this.setStyleName("frame-panel");
		title = new HTML();
		title.setStyleName("frame-title");
		this.add(title);
	}
	
	public void set(Widget widget, String htmlTitle) {
		this.clear();
		title.setHTML(htmlTitle);
		this.add(title);
		this.widget = widget;
		this.add(this.widget);
	}
	
}
